home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / web / noweb / contrib / kostas / Makefile < prev    next >
Makefile  |  1995-02-24  |  2KB  |  65 lines

  1. LIB=/dev/null    # to be overridden by install
  2. SHELL=/bin/sh
  3. IFILTER=$(LIB)/icon.filter
  4. ICONC=icont    # can be overridden by install
  5.  
  6. .SUFFIXES: .nw .icn
  7. .nw.icn: ;    notangle -L'#line %-1L "%F"%N' $*.nw | cpif $*.icn
  8.  
  9. FILTERS=icon.filter oot.filter math.filter txl.filter
  10. AUTODEFS=autodefs.oot autodefs.math autodefs.txl
  11. all: $(FILTERS) $(AUTODEFS)
  12. source: inw.icn tnw.icn mnw.icn txlnw.icn ootdefs.icn mathdefs.icn txldefs.icn
  13. install: $(FILTERS) $(AUTODEFS)
  14.     cp $(FILTERS) $(AUTODEFS) $(LIB)
  15.  
  16. # Icon files.
  17. inw.icn: inw.nw icontrans.nw lipp.nw
  18.     notangle -L'#line %-1L "%F"%N' inw.nw lipp.nw icontrans.nw > inw.icn
  19. tnw.icn: tnw.nw oottrans.nw lipp.nw
  20.     notangle -L'#line %-1L "%F"%N' tnw.nw lipp.nw oottrans.nw > tnw.icn
  21. mnw.icn: mnw.nw mathtrans.nw lipp.nw
  22.     notangle -L'#line %-1L "%F"%N' mnw.nw lipp.nw mathtrans.nw > mnw.icn
  23. txlnw.icn: txlnw.nw txltrans.nw lipp.nw
  24.     notangle -L'#line %-1L "%F"%N' txlnw.nw lipp.nw txltrans.nw > txlnw.icn
  25. ootdefs.icn: ootdefs.nw defns.nw
  26.     notangle -L'#line %-1L "%F"%N' $*.nw defns.nw | cpif $*.icn
  27. mathdefs.icn: mathdefs.nw defns.nw
  28.     notangle -L'#line %-1L "%F"%N' $*.nw defns.nw | cpif $*.icn
  29. txldefs.icn: txldefs.nw defns.nw
  30.     notangle -L'#line %-1L "%F"%N' $*.nw defns.nw | cpif $*.icn
  31.  
  32.  
  33. # Executables.
  34. icon.filter: inw.icn
  35.     -icont -o icon.filter inw.icn
  36. oot.filter: tnw.icn
  37.     -icont -o oot.filter tnw.icn
  38. math.filter: mnw.icn
  39.     -icont -o math.filter mnw.icn
  40. txl.filter: txlnw.icn
  41.     -icont -o txl.filter txlnw.icn
  42. autodefs.oot: ootdefs.icn
  43.     $(ICONC) -o autodefs.oot ootdefs.icn
  44. autodefs.math: mathdefs.icn
  45.     $(ICONC) -o autodefs.math mathdefs.icn
  46. autodefs.txl:  txldefs.icn
  47.     $(ICONC) -o autodefs.txl txldefs.icn
  48.  
  49. # TeX files.
  50. inw.tex: inw.nw lipp.nw
  51.     noweave -delay -autodefs icon -index -filter $(IFILTER) inw.nw lipp.nw > inw.tex
  52. tnw.tex: tnw.nw lipp.nw
  53.     noweave -delay -autodefs icon -index -filter $(IFILTER) tnw.nw lipp.nw > tnw.tex
  54. mnw.tex: mnw.nw lipp.nw
  55.     noweave -delay -autodefs icon -index -filter $(IFILTER) mnw.nw lipp.nw > mnw.tex
  56. txlnw.tex: txlnw.nw lipp.nw
  57.     noweave -delay -autodefs icon -index -filter $(IFILTER) txlnw.nw lipp.nw > txlnw.tex
  58. ootdefs.tex: ootdefs.nw
  59.     noweave -autodefs icon -index -filter $(IFILTER) ootdefs.nw > ootdefs.tex
  60. txldefs.tex: txldefs.nw
  61.     noweave -autodefs icon -index -filter $(IFILTER) txldefs.nw > txldefs.tex
  62.  
  63. clean:
  64.     /bin/rm -f *.tex *.dvi *.aux *.log *.blg *.bbl *~ *.icn *.filter autodefs.*
  65.